﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ConcordWinManager
{
    public partial class InstallationEditForm : Form
    {
        private string mode;
        private Form parentForm;

        public InstallationEditForm()
        {
            InitializeComponent();
        }

        
        /// <summary>
        /// Конструктор на добавление
        /// </summary>
        /// <param name="parentForm"></param>
        /// <param name="mode"></param>
        public InstallationEditForm(Form parentForm, string mode)
        {
            InitializeComponent();

            this.mode = mode;

            this.Text = string.Format("Монтаж [{0}]", mode);

            this.parentForm = parentForm;

            if (this.mode == "Добавление")
            {
                //    contragent = new Contragent();
                //    act = true;
            }
        }

        /// <summary>
        /// Конструктор на изменение
        /// </summary>
        /// <param name="parentForm"></param>
        /// <param name="mode"></param>
        /// <param name="id"></param>
        public InstallationEditForm(Form parentForm, string mode, int id, string type)
        {
            InitializeComponent();

            this.mode = mode;

            this.Text = string.Format("Монтаж [{0}]", mode);

            this.parentForm = parentForm;

            if (mode == "Изменение")
            {

            }

        }
    }
}
